﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPages/Site.Master" Inherits="RushTracker.Web.UI.RushTrackerViewPage<RushTracker.Core.Models.User>" %>
<asp:Content ContentPlaceHolderID="mainContent" runat="server">
    <div class="box">
        <h2>Edit user account</h2>
        
        <% using(Html.BeginForm("Edit", "Users", new { userId = Model.Id }, FormMethod.Post, new { @class = "standardform" })) { %>
        <div class="boxcontent">
            <table>
                <tr>
                    <td style="width: 100px;">Username</td>
                    <td style="width: 240px;"><%: Model.Username%></td>
                    <td></td>
                </tr>
                
                <tr>
                    <td colspan="3" style="height: 15px;"></td>
                </tr>
                
                <tr>
                    <td>New password</td>
                    <td><%= Html.Password("password", "", new { @class = "fullwidth" })%></td>
                    <td class="hint">Leave blank if you want to keep your password</td>
                </tr>
                
                <tr>
                    <td>Repeat password</td>
                    <td><%= Html.Password("passwordrepeat", "", new { @class = "fullwidth" })%></td>
                    <td class="hint">Repeat the password you entered</td>
                </tr>
                
                <tr>
                    <td colspan="3" style="height: 15px;"></td>
                </tr>
                
                <tr>
                    <td>Email adress</td>
                    <td><%= Html.TextBox("email", Model.Email, new { @class = "fullwidth" })%></td>
                    <td></td>
                </tr>
            </table>
        </div>
        
        <div class="boxfooter">
            <input type="submit" value="Update!" />
        </div>
        <% } %>
    </div>


</asp:Content>
